

public class Main {
    public Main(){

    }
    public static void main(String[] args){
        //创建学生
        Sdudent s1=new Sdudent("S2024001","张三","男",18);
        Sdudent s2=new Sdudent("S2024002","李四","男",20);
        //创建课程
        Course c1=new Course("C001","javaweb应用开发","刘教授");
        Course c2=new Course("C002","数据库原理","王老师");
        //用set修改一个学生的年龄和一个课程的老师
        s1.setAge(19);
        c1.setTeacher("舒老师");

        //展示学生信息
        System.out.println("----学生信息----");
        s1.showInfo();
        s2.showInfo();

        //展示课程信息
        System.out.println("----课程信息----");
        c1.showInfo();
        c2.showInfo();


    }





}
